/*
 * FileUtilties.h
 *
 *  Created on: Jan 23, 2012
 *      Author: hduser
 */

#ifndef FILEUTILITIES_H_
#define FILEUTILITIES_H_

#include<iostream>
#include<fstream>
#include<string>

using namespace std;

namespace utilities {

class FileUtilities {
public:
	FileUtilities();
	virtual ~FileUtilities();
	size_t readBytes(char *name, char** buffer);
	size_t readBytes(ifstream* fl, char** buffer, streampos pos, size_t length);
	size_t readBytes(char *name, char** buffer, streampos pos, size_t length);
	int writeBytes(char* name, char *buffer, int buffersize);
	int writeBytes(ofstream* fl, char *buffer, int buffersize);
};

}

#endif /* FILEUTILITIES_H_ */
